﻿<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <include file="Public/template"/>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta content="" name="description" />
    <meta content="webthemez" name="author" />
    <title>Bootstrap Admin html Template</title>
    <!-- Bootstrap Styles-->
    <link href="__PUBLIC__/assets/css/bootstrap.css" rel="stylesheet" />
    <!-- FontAwesome Styles-->
    <link href="__PUBLIC__/assets/css/font-awesome.css" rel="stylesheet" />
    <!-- Morris Chart Styles-->

    <!-- Custom Styles-->
    <link href="__PUBLIC__/assets/css/custom-styles.css" rel="stylesheet" />
    <!-- Google Fonts-->
    <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
    <!-- TABLE STYLES-->
    <link href="__PUBLIC__/assets/js/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
</head>
<body>
<div id="wrapper">

    <div id="page-wrapper" >
        <div class="header">
            <h1 class="page-header">
                教师列表 <small>Teacher tables</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="/zxdyxt_php/Admin/user/UserList">用户列表</a></li>
                <li><a href="/zxdyxt_php/Admin/user/TeacherList">教师列表</a></li>
                <li class="active">学生列表</li>

            </ol>

        </div>

        <div id="page-inner">

            <div class="row">
                <div class="col-md-12">
                    <!-- Advanced Tables -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Advanced Tables
                        </div>
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                    <thead>
                                    <tr>
                                        <th>编号</th>
                                        <th>用户姓名</th>
                                        <th>用户头像</th>
                                        <th>出生年月</th>
                                        <th>用户类别</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <volist name="StudentList" id="student">
                                        <tr>
                                            <td>{$cnt++}</td>
                                            <td><a href="__URL__/UserInfo/user_id/{$student.u_id}" >{$student.u_name}</a></td>
                                            <td><img src="__PUBLIC__/upload/userpics/{$student.u_pic}"style="width: 80px"></td>
                                            <td>{$student.u_birthday}</td>
                                            <td>
                                                <if condition="$student.u_state eq '0'">学生
                                                    <else/>
                                                    教师
                                                </if>


                                            </td>
                                            <td>
                                                <if condition="$student.u_state eq '0'">
                                                    <a href="__URL__/state/id/{$student.u_id}/state/{$student.u_state}" class="btn btn-warning btn-sm">设为教师</a>
                                                    <else/>
                                                    <a href="__URL__/isstate/id/{$student.u_id}/state/{$student.u_state}" class="btn btn-warning btn-sm"><i
                                                            class="icon-move"></i>设为学生</a>
                                                </if>
                                                <a href="__URL__/UserPwd/user_id/{$student.u_id}" class="btn btn-success btn-sm" >重置密码</a>
                                                <a href="__URL__/UserDel/user_id/{$student.u_id}" class="btn btn-danger btn-sm" onclick="return confirm('你确定要删除吗')">删除</a>
                                            </td>
                                        </tr>
                                    </volist>

                                    </tbody>
                                </table>
                            </div>

                        </div>
                    </div>
                    <!--End Advanced Tables -->
                </div>
            </div>

        </div>
        <footer><p>Copyright &copy; 2016.Company name All rights reserved.<a target="_blank" href="http://www.cssmoban.com/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a></p></footer>
    </div>
    <!-- /. PAGE INNER  -->
</div>
<!-- /. PAGE WRAPPER  -->
<!-- /. WRAPPER  -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script src="__PUBLIC__/assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="__PUBLIC__/assets/js/bootstrap.min.js"></script>
<!-- Metis Menu Js -->
<script src="__PUBLIC__/assets/js/jquery.metisMenu.js"></script>
<!-- DATA TABLE SCRIPTS -->
<script src="__PUBLIC__/assets/js/dataTables/jquery.dataTables.js"></script>
<script src="__PUBLIC__/assets/js/dataTables/dataTables.bootstrap.js"></script>
<script>
    $(document).ready(function () {
        $('#dataTables-example').dataTable();
    });
</script>
<!-- Custom Js -->
<script src="__PUBLIC__/assets/js/custom-scripts.js"></script>


</body>
</html>
